PROJECT(cuda-test)

FIND_PACKAGE(CUDA REQUIRED)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -mavx2 -DLOG_LEVEL=6")
SET(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -std=c++14 -DLOG_LEVEL=6")

INCLUDE_DIRECTORIES(
  ..
  /usr/include
  /usr/local/include
)

LINK_DIRECTORIES(
  /usr/lib
  /usr/local/lib
)

CUDA_ADD_EXECUTABLE(
  cuda-test
  cuda.cpp
  main.cu
)

TARGET_LINK_LIBRARIES(
  cuda-test
  crypto
  ssl
  pthread
  jlib
)
